# # # 修改元素


# # #替换，被替换长度=替换长度，等号两侧长度一致
# # x=[9,7,8]
# # print(x)
# # x[1:]=[66,88]
# # print(x)



# # #替换，等号两侧，长度不一致
# # x=[9,7,8]
# # print(x)
# # x[1:]=[66,88,999]
# # print(x)




# # x=[9,7,8]
# # print(x)
# # x[1:]=[66]
# # print(x)

# x=[0,1,2,3,4,5,6]
# print(x)
# x[3:6]=[77,88,99,11,22,33]
# print(x)

# x=[0,1,2,3,4,5,6]
# print(x)
# x[3:6]=[999]
# print(x)


# # # 替换，不相邻位置替换
# # # 注意，此时左右两个长度要一致
# # x=range(11)
# # x=list(x)
# # print(x)
# # x[::3]=['x','x','x','x']
# # print(x)

x=[9,8,7,666,1,5,6,70]
x[::2]=["李"]*4
print(x)
